<?php

class Users_model extends Base_model{
    
        

    function getByPhone($phone) {
        
        $this->app->logger->info("param phone = ". $phone );

        $entity = $this->app->db
                ->select('id,maskId,username,name,phone,photo,idcard,wxAutoLogin')
                ->from('trjh_users')
                ->where("state=:state and phone=:phone")
                ->bindValues(['state'=>1,'phone'=>$phone])
                ->row();
        return $entity;
    }

}
